The DirectGroup allows other QTDrawable objects to be added to the same QTCanvas - much in the same way that lightweight components work with java.awt
The DirectGroup requires that the contained members to draw directly to the screen. The layering of the members are achieved through the clipping of the members that are behind others - disallowing their ability to draw where members are in front of them.
There are also Controllers attached to the Space:
(1) shift-click on any object to drag it around - the picture is restrained to the bounds of the DirectGroup. The other two objects can be dragged to within a single pixel showing.
(2) option-click to send an object to the back layer.
The spaceships (see Bouncing and Dragging Sprite samples) are also draggable and are contained within their space. Thus this sample also shows the ability to embed spaces within spaces with the contained space retained their own sense of a Space for their members.
The blue border around the picture after you make the window bigger is the background color of the DirectGroup. You could restrain the resize of the canvas to the picture's size (new QTCanvas (kInitialsize....))
A QTSession.open will perform a gestalt check to ensure that QuickTime is present and is initialized. This is a required call before any QuickTime Java classes can be used.
When the user closes the window the program will quit, first calling QTSession.close to terminate QuickTime. It is necessary for programs to call QTSession.close if they have previously called QTSession.open in order to shut down QuickTime properly.